package com.studiofortress.sf.audio;

import javax.sound.sampled.AudioInputStream;

/**
 * This will return an audio stream for the same piece of music or sound. The
 * intention is to allow say Ogg, MP3 and Wav files to all have their own
 * factories allowing them to independently define how their audio streams are
 * created. This code can then be passed around as an instance of this factory.
 *
 * This is mainly used internally and users should only be using this interface
 * if they are extending the BufferedAudioPlayer.
 * 
 * @author Joseph Lenton - JosephLenton@StudioFortress.com
 */
public interface AudioStreamFactory
{
    public AudioInputStream newStream();
}
